package com.platform.admin.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable;

@ApiModel("系统角色")
@Data
@EqualsAndHashCode(callSuper=true)
@TableName("mes_group_order_target")
@NoArgsConstructor
public class SysRole extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("角色名称")
    private String name;
    @ApiModelProperty("角色编码")
    private String code;
    @ApiModelProperty("显示顺序")
    private Integer sort;
    @ApiModelProperty("角色状态：0-正常；1-停用")
    private int status;
    @ApiModelProperty("逻辑删除标识：0-未删除；1-已删除")
    @TableLogic(value = "0", delval = "1")
    private int deleted;
}